<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8" />
	<title>订单列表</title>
	<meta name="description" content="Static & Dynamic Tables" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<!-- basic styles -->
	<hdjs/>
	<link href="__PUBLIC__/css/bootstrap.min.css" rel="stylesheet" />
	<link href="__PUBLIC__/css/bootstrap-responsive.min.css" rel="stylesheet" />
	<link rel="stylesheet" href="__PUBLIC__/css/font-awesome.min.css" />
	<!--[if IE 7]>
	  <link rel="stylesheet" href="__PUBLIC__/css/font-awesome-ie7.min.css" />
	<![endif]-->
	<!-- page specific plugin styles -->
	
	<!-- ace styles -->
	<link rel="stylesheet" href="__PUBLIC__/css/ace.min.css" />
	<link rel="stylesheet" href="__PUBLIC__/css/ace-responsive.min.css" />
	<link rel="stylesheet" href="__PUBLIC__/css/ace-skins.min.css" />
	<!--[if lt IE 9]>
	  <link rel="stylesheet" href="__PUBLIC__/css/ace-ie.min.css" />
	<![endif]-->
</head>
<body>

	<div class="container-fluid" id="main-container">

		<!-- PAGE CONTENT BEGINS HERE -->
		<div class="row-fluid">
			<div class="table-header">
				订单管理 | <a style="font-size:14px;" href="{|U:'Order/index'}">订单列表</a>
			</div>
			<table id="table_report" class="table table-striped table-bordered table-hover">
				<thead>
					<tr pid=0>
						<th class="center">
							<label><input type="checkbox" /><span class="lbl"></span></label>
						</th>
						<th class="hidden-480">OID</th>
						<th>下单时间</th>
						<th class="hidden-phone">收货人</th>
						<th>总金额</th>
						<th class="hidden-480">订单状态</th>
						<th style="width:120px;">操作</th>
					</tr>
				</thead>
								
				<tbody>
					<foreach from="$order" value="$value">
						<tr>
							<td class='center'>
								<label><input type='checkbox' /><span class="lbl"></span></label>
							</td>
							<td class='hidden-480'>{$value.oid}</td>
							<td>{$value.oorder_time|hd_date}</td>
							<td>{$value.oconsignee} [TEL:{$value.ophone_cnee}] {$value.oaddress} {$value.ozipcode}</td>
							<td class='hidden-phone'>{$value.ototal}</td>
							<td class='hidden-480 clogobox'>
							<switch value='{$value.ostate}'>
								<case value='1'><span class="label label-info arrowed-right arrowed-in">已提交,待付款</span></case>
								<case value='2'><span class="label label-success arrowed-right arrowed-in">已付款,待发货</span></case>
								<case value='3'><span class="label label-warning arrowed">已发货,待收货</span></case>
								<case value='4'><span class="label label-important arrowed arrowed-right">已收货,完结</span></case>
							</switch>
							</td>
							<td style="width:120px;">
								<div class='hidden-phone visible-desktop btn-group'>
									<a href="{|U:'show_order',array('oid'=>$value['oid'])}" class="btn btn-mini btn-info" data-rel="tooltip" data-placement="left"><i class="icon-flag"> 查看</i></a>
								</div>
							</td>
						</tr>
					</foreach>
				</tbody>
			</table>
		</div>
		<!-- PAGE CONTENT ENDS HERE -->
	
	</div><!-- #main-content -->
	

	<a href="#" id="btn-scroll-up" class="btn btn-small btn-inverse">
		<i class="icon-double-angle-up icon-only"></i>
	</a>
	<!-- basic scripts -->
	<script src="__PUBLIC__/js/bootstrap.min.js"></script>
	<!-- page specific plugin scripts -->
	
	<script type="text/javascript" src="__PUBLIC__/js/jquery.dataTables.min.js"></script>
	<script type="text/javascript" src="__PUBLIC__/js/jquery.dataTables.bootstrap.js"></script>
	<!-- ace scripts -->
	<script src="__PUBLIC__/js/ace-elements.min.js"></script>
	<script src="__PUBLIC__/js/ace.min.js"></script>
	<!-- inline scripts related to this page -->
	
	<script type="text/javascript">
	$(function() {
		var oTable1 = $('#table_report').dataTable( {
		"aoColumns": [
	      { "bSortable": false },
	      null, null,null, null, null,
		  { "bSortable": false }
		] } );
		$('[data-rel=tooltip]').tooltip();
		})
	</script>
</body>
</html>